<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<title></title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<style type="text/css">
.hotline24 {
	width: 120px;
	height: 30px;
	border-radius: 5px;
	background: #00AAAA;
	line-height: 30px;
	text-align: center;
	color: #fff;
	font-size: 13px;
}

.hotline25 {
	width: 120px;
	height: 30px;
	border-radius: 5px;
	background: #AAAAAA;
	line-height: 30px;
	text-align: center;
	color: #fff;
	font-size: 13px;
}
</style>
</head>

<c:if test="${code==1}">

<body>
		
		
	<div style="margin-left:20px">
	<input id="serviceCourierId" style="background:#00DDDD" align="right" type="hidden" readOnly="readOnly" value="<s:property value="#request.courierId" />" />
			<input id="serviceOrderNo" style="background:#00DDDD" align="right" type="hidden" readOnly="readOnly" value="<s:property value="#request.orderService.orderNo" />" />
				<input alt="系统暂未检测是否及时录入单号" style="background:#00DDDD;width:180px;" align="middle" class="" type="text" readOnly="readOnly" value="<s:property value="#request.orderService.checkTime" />" /> 
		</div>
		
		
		<div style="margin-left:20px;margin-top:15px;">
		
		<div>	
			   <input id="orderLostHidden"  type="hidden" value="<s:property value="#request.orderService.lost" />" />
              		未丢失<input id="1" type="radio" name="orderLostRadio_name" value="0"  <s:if test="#request.orderService.lost==0">checked="checked"</s:if>  />
              		已丢失<input id="2" type="radio" name="orderLostRadio_name" value="1"  <s:if test="#request.orderService.lost==1">checked="checked"</s:if>  />
               <input id="orderLost" style="width:400px;height:25px;" type="text" value="<s:property value="#request.orderService.lostContent" />" />
			   <input id="orderLost_btn" class="hotline24" type="button" value="确认" onclick="updateOrderService('orderLost')" /> 
		</div><br /> 
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		<div>
		 	   <input id="orderSendedHidden"  type="hidden" value="<s:property value="#request.orderService.sended" />" />
              		已发件<input id="3" type="radio" name="orderSendedRadio_name" value="0"  <s:if test="#request.orderService.sended==0">checked="checked"</s:if>  />
              		未发件<input id="4" type="radio" name="orderSendedRadio_name" value="1"  <s:if test="#request.orderService.sended==1">checked="checked"</s:if>  />
               <input id="orderSended" style="width:400px;height:25px;" type="text" value="<s:property value="#request.orderService.sendedContent" />"  />
			   <input id="orderSended_btn" class="hotline24" type="button" value="确认" onclick="updateOrderService('orderSended')"/> 
		</div><br /> 
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		<div>	
			   <input id="orderWrongCostHidden"  type="hidden" value="<s:property value="#request.orderService.wrongCost" />" />
              		未乱收<input id="5" type="radio" name="orderWrongCostRadio_name" value="0"  <s:if test="#request.orderService.wrongCost==0">checked="checked"</s:if>   />
              		乱收费<input id="6" type="radio" name="orderWrongCostRadio_name" value="1"  <s:if test="#request.orderService.wrongCost==1">checked="checked"</s:if>   />
			<input id="orderWrongCost" style="width:400px;height:25px;" type="text" value="<s:property value="#request.orderService.wrongCostContent" />" />
			<input id="orderWrongCost_btn" class="hotline24" type="button" value="确认" onclick="updateOrderService('orderWrongCost')"/>
		</div><br /> 
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		<div>	
			   <input id="orderWrongSendHidden"  type="hidden" value="<s:property value="#request.orderService.wrongSend" />" />
              		未错发<input id="7" type="radio" name="orderWrongSendRadio_name" value="0"  <s:if test="#request.orderService.wrongSend==0">checked="checked"</s:if>  />
              		已错发<input id="8" type="radio" name="orderWrongSendRadio_name" value="1"  <s:if test="#request.orderService.wrongSend==1">checked="checked"</s:if>  />
		<input id="orderWrongSend" style="width:400px;height:25px;" type="text" value="<s:property value="#request.orderService.wrongSendContent" />" />
		<input id="orderWrongSend_btn" class="hotline24" type="button" value="确认"  onclick="updateOrderService('orderWrongSend')"/>
		</div><br /> 
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		<div>	
			<input id="orderComplainHidden"  type="hidden" value="<s:property value="#request.orderService.complain" />" />
              		无投诉<input id="9" type="radio" name="orderComplainRadio_name" value="0"  <s:if test="#request.orderService.complain==0">checked="checked"</s:if>  />
              		被投诉<input id="10" type="radio" name="orderComplainRadio_name" value="1"  <s:if test="#request.orderService.complain==1">checked="checked"</s:if>  />
			<input id="orderComplain" style="width:400px;height:25px;" type="text" value="<s:property value="#request.orderService.complainContent" />" />
			<input id="orderComplain_btn" class="hotline24" type="button" value="确认" onclick="updateOrderService('orderComplain')"/> 
		</div><br /> 
		
		
		
				
		<div>	
			<input id="orderRefuseHidden"  type="hidden" value="<s:property value="#request.orderService.refuse" />" />
              		无拒绝<input id="9" type="radio" name="orderRefuseRadio_name" value="0"  <s:if test="#request.orderService.refuse==0">checked="checked"</s:if>  />
              		拒绝单<input id="10" type="radio" name="orderRefuseRadio_name" value="1"  <s:if test="#request.orderService.refuse==1">checked="checked"</s:if>  />
			<input id="orderRefuse" style="width:400px;height:25px;" type="text" value="<s:property value="#request.orderService.refuseContent" />" />
			<input id="orderRefuse_btn" class="hotline24" type="button" value="确认" onclick="updateOrderService('orderRefuse')"/> 
		</div><br /> 
		
		
				
		<div>	
			<input id="orderChangeExcompanyHidden"  type="hidden" value="<s:property value="#request.orderService.changeExcompany" />" />
              		未更换<input id="9" type="radio" name="orderChangeExcompanyRadio_name" value="0"  <s:if test="#request.orderService.changeExcompany==0">checked="checked"</s:if>  />
              		换公司<input id="10" type="radio" name="orderChangeExcompanyRadio_name" value="1"  <s:if test="#request.orderService.changeExcompany==1">checked="checked"</s:if>  />
			<input id="orderChangeExcompany" style="width:400px;height:25px;" type="text" value="<s:property value="#request.orderService.changeExcompanyContent" />" />
			<input id="orderChangeExcompany_btn" class="hotline24" type="button" value="确认" onclick="updateOrderService('orderChangeExcompany')"/> 
		</div><br /> 
		
		
		
		
		
		<s:if test="#request.orderService.checkTime!=null">
			<div>	
			   <input id="orderOrderInputHidden"  type="hidden" value="<s:property value="#request.orderService.orderInput" />" />
              		不及时<input id="11" type="radio" name="orderOrderInputRadio_name" value="0"  <s:if test="#request.orderService.orderInput==0">checked="checked" </s:if>    />
              		及时录<input id="12" type="radio" name="orderOrderInputRadio_name" value="1"  <s:if test="#request.orderService.orderInput==1">checked="checked" </s:if>    />
			<input id="orderOrderInput" style="width:400px;height:25px;" type="text" value="<s:property value="#request.orderService.orderInputContent" />" />
			<input id="orderOrderInput_btn" class="hotline24" type="button" value="确认" onclick="updateOrderService('orderOrderInput')"/> 
		</div><br /> 
		</s:if>
		
		
		
		
		
		
		
		
		
		
		
		
	</div>
	
	

		
		
			
		
		

</body>
<script type="text/javascript">

	//丢件
	function updateOrderService(flag){
		var radioName = flag+"Radio_name" ;
		var radioValue = $("input[name='"+radioName+"']:checked").val();
		var hiddenValue= $("#"+flag+"Hidden").val();
		if(radioValue==hiddenValue){
			alertMsg.warn("选择错误！");
			return;
		}
		var orderNo = $("#serviceOrderNo").val();
		var content = $.trim($("#"+flag).val());
		var courierId =  $("#serviceCourierId").val();
		//不为空
		if(!nullOfString(content)){
			alertMsg.warn("备注不能为空");
			return;
		}
		updateOrderServiceRequest(flag,content,orderNo,courierId,radioValue);
	}
	
	
	
	
	
	
	//AJAX
	//flag:标示为哪个按钮的修改请求
	//content为备注内容
	function updateOrderServiceRequest(flag,content,orderNo,courierId,radioValue){
		$.ajax({
            type: 'post',
            url:'<%=basePath %>updateOrderServiceAction',
            data:{flag:flag,content:content,orderNo:orderNo,courierId:courierId,radioValue:radioValue},
            success : function(data) {
                 if (data == 'true' ) { 
                	 $("#"+flag+"Hidden").val(radioValue);
                	 alertMsg.correct("修改成功！");
                 } else if (data == 'false') { 
                	 alertMsg.warn("修改失败！");
                 }
            }
       });
	}


</script>


</c:if>
<c:if test="${code==0}">
${message}
</c:if>
</html>
